package com.credithc.signature.common.mapper;

import com.credithc.baseserv.core.mapper.BsBaseMapper;
import com.credithc.signature.common.po.Channel;
import com.credithc.signature.common.ro.manager.ChannelRo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChannelMapper extends BsBaseMapper<Channel> {

    Channel selectByChannelNo(@Param("channelNo") String channelNo);

    Channel selectByChannelMappingNo(@Param("channelMappingNo") String channelMappingNo);

    Channel getOneSelectiveIntersection(@Param("channel") Channel channel);

    /**
     * 查询所有
     *
     * @param channelRo
     * @return
     */
    List<Channel> listByParamsAndPage(@Param("condition") ChannelRo channelRo);

    /**
     * 查询总数
     *
     * @param channelRo
     * @return
     */
    int countByParamsAndPage(@Param("condition") ChannelRo channelRo);
}
